package cn.jetpiece.cloud.joss.app.config;

import cn.jetpiece.cloud.joss.app.config.properties.OssProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author XuJZ
 * @since 2020/9/5
 */
@Configuration
public class OssConfig {

    @Bean
    @ConfigurationProperties(prefix = OssProperties.SYNC_PREFIX)
    public OssProperties ossProperties() {
        OssProperties ossProperties = new OssProperties();
        ossProperties.setInstance(ossProperties);
        return ossProperties;
    }

}
